<?php
/**
 * PHP Framework Integration Web Service class
 * This class represents a generic web service independent of the underlying
 * transport protocol
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
abstract class WebService {
    
    public function __construct() {
        echo $this->processRequest();
    }

    /**
     * Called to handle web service request
     **/
    protected abstract function processRequest();

    protected abstract function onMethodCall($class, $method, $arParameters);
}
?>